<template>
<div class="attTable data">
    <Row>
        <Table :columns="columns" :data="data" border stripe :show-header="false"></Table>
    </Row>
</div>
</template>

<script>
import {
    labels
} from "./labels"
// import {
//     getStudentAttendanceAll
// } from "@/api/index";

export default {
    name: 'attendance-table-data',
    props: {
        searchForm: {
            type: Object,
            required: true
        },
    },
    data() {
        // v 传过来的值， bgColor是背景色
        const a = function (h, v, bgColor) {
            return h(
                "div", {
                    style: {
                        backgroundColor: bgColor,
                    },
                    on: {
                        click: () => {

                        }
                    }
                },
                // v.slice(0,1)
            );
        };
        return {
            showTable: false,
            labels,
            /**
             * Time：2019-6-12 13:37:37
             * By：Haley
             * 星期一的8列 w11~w18   星期二的8列 w21~w28  依次类推一直到 星期五
             * 星期日的6列 w71~w76
             * 考勤统计的4列 w81~w84
             * 列宽与表头组件一致，均为28
             */
            columns: [{
                    type: "index",
                    title: "序号",
                    align: "center",
                    className: "td",
                    width: 29,
                },
                {
                    key: "studentName",
                    title: "姓名",
                    className: "td",
                    width: 70,
                    align: "center",
                },
                // 星期一
                {
                    key: "w11",
                    align: "center",
                    title: "w11",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoOne, this.getLabelsColor(params.row.monday.lessonNoOne));
                    },
                },
                {
                    key: "w12",
                    align: "center",
                    title: "w12",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoTwo, this.getLabelsColor(params.row.monday.lessonNoTwo));
                    },
                },
                {
                    key: "w13",
                    align: "center",
                    title: "w13",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoThree, this.getLabelsColor(params.row.monday.lessonNoThree));
                    },
                },
                {
                    key: "w14",
                    title: "w14",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoFour, this.getLabelsColor(params.row.monday.lessonNoFour));
                    },
                },
                {
                    key: "w15",
                    title: "w15",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoFive, this.getLabelsColor(params.row.monday.lessonNoFive));
                    },
                },
                {
                    key: "w16",
                    title: "w16",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.monday.lessonNoSix, this.getLabelsColor(params.row.monday.lessonNoSix));
                    },
                },
                // 星期二
                {
                    key: "w21",
                    align: "center",
                    title: "w21",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoOne, this.getLabelsColor(params.row.tuesday.lessonNoOne));
                    },
                },
                {
                    key: "w28",
                    align: "center",
                    title: "w28",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoTwo, this.getLabelsColor(params.row.tuesday.lessonNoTwo));
                    },
                },
                {
                    key: "w23",
                    align: "center",
                    title: "w23",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoThree, this.getLabelsColor(params.row.tuesday.lessonNoThree));
                    },
                },
                {
                    key: "w24",
                    title: "w24",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoFour, this.getLabelsColor(params.row.tuesday.lessonNoFour));
                    },
                },
                {
                    key: "w25",
                    align: "center",
                    title: "w21",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoFive, this.getLabelsColor(params.row.tuesday.lessonNoFive));
                    },
                },
                {
                    key: "w26",
                    align: "center",
                    title: "w28",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.tuesday.lessonNoSix, this.getLabelsColor(params.row.tuesday.lessonNoSix));
                    },
                },
                // 星期三
                {
                    key: "w31",
                    align: "center",
                    title: "w31",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoOne, this.getLabelsColor(params.row.wednesday.lessonNoOne));
                    },
                },
                {
                    key: "w32",
                    align: "center",
                    title: "w32",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoTwo, this.getLabelsColor(params.row.wednesday.lessonNoTwo));
                    },
                },
                {
                    key: "w33",
                    align: "center",
                    title: "w33",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoThree, this.getLabelsColor(params.row.wednesday.lessonNoThree));
                    },
                },
                {
                    key: "w34",
                    title: "w34",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoFour, this.getLabelsColor(params.row.wednesday.lessonNoFour));
                    },
                },
                {
                    key: "w35",
                    align: "center",
                    title: "w35",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoFive, this.getLabelsColor(params.row.wednesday.lessonNoFive));
                    },
                },
                {
                    key: "w36",
                    align: "center",
                    title: "w36",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.wednesday.lessonNoSix, this.getLabelsColor(params.row.wednesday.lessonNoSix));
                    },
                },
                // 星期四
                {
                    key: "w41",
                    align: "center",
                    title: "w41",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoOne, this.getLabelsColor(params.row.thursday.lessonNoOne));
                    },
                },
                {
                    key: "w42",
                    align: "center",
                    title: "w42",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoTwo, this.getLabelsColor(params.row.thursday.lessonNoTwo));
                    },
                },
                {
                    key: "w43",
                    align: "center",
                    title: "w43",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoThree, this.getLabelsColor(params.row.thursday.lessonNoThree));
                    },
                },
                {
                    key: "w44",
                    title: "w44",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoFour, this.getLabelsColor(params.row.thursday.lessonNoFour));
                    },
                },
                {
                    key: "w45",
                    align: "center",
                    title: "w45",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoFive, this.getLabelsColor(params.row.thursday.lessonNoFive));
                    },
                },
                {
                    key: "w46",
                    align: "center",
                    title: "w46",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.thursday.lessonNoSix, this.getLabelsColor(params.row.thursday.lessonNoSix));
                    },
                },
                // 星期五
                {
                    key: "w51",
                    align: "center",
                    title: "w51",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoOne, this.getLabelsColor(params.row.friday.lessonNoOne));
                    },
                },
                {
                    key: "w52",
                    align: "center",
                    title: "w52",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoTwo, this.getLabelsColor(params.row.friday.lessonNoTwo));
                    },
                },
                {
                    key: "w53",
                    align: "center",
                    title: "w53",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoThree, this.getLabelsColor(params.row.friday.lessonNoThree));
                    },
                },
                {
                    key: "w54",
                    title: "w54",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoFour, this.getLabelsColor(params.row.friday.lessonNoFour));
                    },
                },
                {
                    key: "w55",
                    title: "w55",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoFive, this.getLabelsColor(params.row.friday.lessonNoFive));
                    },
                },
                {
                    key: "w56",
                    title: "w56",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.friday.lessonNoSix, this.getLabelsColor(params.row.friday.lessonNoSix));
                    },
                },
                {
                    key: "w71",
                    title: "w71",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.sunday.lessonNoOne, this.getLabelsColor(params.row.sunday.lessonNoOne));
                    },
                },
                {
                    key: "w72",
                    title: "w72",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.sunday.lessonNoTwo, this.getLabelsColor(params.row.sunday.lessonNoTwo));
                    },
                },
                {
                    key: "w73",
                    title: "w73",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.sunday.lessonNoThree, this.getLabelsColor(params.row.sunday.lessonNoThree));
                    },
                },
                {
                    key: "w74",
                    title: "w74",
                    align: "center",
                    width: 25,
                    className: "td",
                    render: (h, params) => {
                        return a(h, params.row.sunday.lessonNoEight, this.getLabelsColor(params.row.sunday.lessonNoEight));
                    },
                },
                {
                    key: "zaotuiNum",
                    title: "w81",
                    align: "center",
                    width: 25,
                    className: "td",
                },
                {
                    key: "chidaoNum",
                    title: "w82",
                    align: "center",
                    width: 25,
                    className: "td",
                },
                {
                    key: "qingjiaNum",
                    title: "w83",
                    align: "center",
                    width: 25,
                    className: "td",
                },
                {
                    key: "queqinNum",
                    title: "w84",
                    align: "center",
                    width: 25,
                    className: "td",
                },

            ],
            data: [],
        }
    },
    methods: {
        init() {
            this.getDataList();
        },
        // 获取数据
        getDataList() {
            let data = [{
                "studentName": "吴楠 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 2,
                "queqinNum": 0,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "bingjia",
                    "lessonNoTwo": "bingjia",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "王峰 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 2,
                "queqinNum": 0,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "bingjia",
                    "lessonNoTwo": "bingjia",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "王博 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 2,
                "queqinNum": 0,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "bingjia",
                    "lessonNoTwo": "bingjia",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "刘豪 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 2,
                "queqinNum": 0,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "bingjia",
                    "lessonNoTwo": "bingjia",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "王媛媛 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "尹伽文 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "顾元元 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "宋雯雯 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "郑浩然 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "李杰奇 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "郑薇薇 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "王霏霏 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "李琦琦 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }, {
                "studentName": "王露 ",
                "zaotuiNum": 0,
                "chidaoNum": 0,
                "qingjiaNum": 0,
                "queqinNum": 2,
                "wednesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "monday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "friday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "tuesday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "thursday": {
                    "lessonNoOne": "queqin",
                    "lessonNoTwo": "queqin",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                },
                "sunday": {
                    "lessonNoOne": "",
                    "lessonNoTwo": "",
                    "lessonNoThree": "",
                    "lessonNoFour": "",
                    "lessonNoFive": "",
                    "lessonNoSix": "",
                    "lessonNoSeven": "",
                    "lessonNoEight": ""
                }
            }]
            this.data=data.concat(data).concat(data);
        },
        //通过传来的key值获取对应的背景色
        getLabelsColor(key) {
            const key2bgColor = {}
            for (let i of this.labels) {
                key2bgColor[i.key] = i.bgColor
            }
            return key2bgColor[key];
        }
    },
    computed: {},
    mounted() {
        this.init()
    },
}
</script>

<style lang="less">
@import "./label.less"; //表格边框线颜色控制

.attTable {
    margin: 0 auto;
    width: 1052px;

    &.data {
        width: 1051px;
    }

    .tabelBox {
        float: left;

        table {
            width: 100%;
        }
    }

    .ivu-table-wrapper,
    table,
    th,
    td {
        border-color: @border-color;
    }

    td:last-child {
        border-right: transparent;
    }

    .ivu-table-wrapper {
        border-top: none;
    }

    .ivu-table:before,
    .ivu-table:after {
        background-color: @border-color;
    }

    .td {
        height: 100%;

        .ivu-table-cell {
            padding: 0 !important;
            height: 20px;
            min-width: 23px;

            div {
                height: 100%;
                width: 100%;
            }
        }
    }
}
</style>
